package day03_inherit.TeachingManagmentSystem;

public class Student extends Person{
    private double score;

    public void exam(){
        System.out.println(getName()+"同学考试得了"+score+"分！");
    }

    public Student() {
    }

    public Student(String name, String age) {
        super(name, age);
    }

    public Student(double score) {
        this.score = score;
    }

    public Student(String name, String age, double score) {
        super(name, age);
        this.score = score;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
